/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2022-03-16 17:09:28
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2022-03-28 18:51:00
 */

//  房间-房间人员管理

import request from '@projectName/utils/request'

export function roompersionsIndex(data) {
  return request({
    url: '/diandi_place/room/roompersions/index',
    method: 'get',
    params: data
  })
}

export function roompersionsView(id) {
  return request({
    url: `/diandi_place/room/roompersions/view/${id}`,
    method: 'get'
  })
}

export function roompersionsCreate(data) {
  return request({
    url: '/diandi_place/room/roompersions/create',
    method: 'post',
    data: data
  })
}

export function roompersionsUpdate(data) {
  return request({
    url: `/diandi_place/room/roompersions/update/${data.id}`,
    method: 'put',
    data: data
  })
}

export function roompersionsdelete(id) {
  return request({
    url: `/diandi_place/room/roompersions/delete/${id}`,
    method: 'delete'
  })
}

export function roompersionsInit(data) {
  return request({
    url: '/diandi_place/room/roompersions/init',
    method: 'get',
    data: data
  })
}

